package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.MeowStockTakingRecordsMapper;
import com.ruoyi.system.domain.MeowStockTakingRecords;
import com.ruoyi.system.service.IMeowStockTakingRecordsService;
import com.ruoyi.common.core.text.Convert;

/**
 * 库存盘点记录Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-06-24
 */
@Service
public class MeowStockTakingRecordsServiceImpl implements IMeowStockTakingRecordsService 
{
    @Autowired
    private MeowStockTakingRecordsMapper meowStockTakingRecordsMapper;

    /**
     * 查询库存盘点记录
     * 
     * @param recordId 库存盘点记录主键
     * @return 库存盘点记录
     */
    @Override
    public MeowStockTakingRecords selectMeowStockTakingRecordsByRecordId(String recordId)
    {
        return meowStockTakingRecordsMapper.selectMeowStockTakingRecordsByRecordId(recordId);
    }

    /**
     * 查询库存盘点记录列表
     * 
     * @param meowStockTakingRecords 库存盘点记录
     * @return 库存盘点记录
     */
    @Override
    public List<MeowStockTakingRecords> selectMeowStockTakingRecordsList(MeowStockTakingRecords meowStockTakingRecords)
    {
        return meowStockTakingRecordsMapper.selectMeowStockTakingRecordsList(meowStockTakingRecords);
    }

    /**
     * 新增库存盘点记录
     * 
     * @param meowStockTakingRecords 库存盘点记录
     * @return 结果
     */
    @Override
    public int insertMeowStockTakingRecords(MeowStockTakingRecords meowStockTakingRecords)
    {
        return meowStockTakingRecordsMapper.insertMeowStockTakingRecords(meowStockTakingRecords);
    }

    /**
     * 修改库存盘点记录
     * 
     * @param meowStockTakingRecords 库存盘点记录
     * @return 结果
     */
    @Override
    public int updateMeowStockTakingRecords(MeowStockTakingRecords meowStockTakingRecords)
    {
        return meowStockTakingRecordsMapper.updateMeowStockTakingRecords(meowStockTakingRecords);
    }

    /**
     * 批量删除库存盘点记录
     * 
     * @param recordIds 需要删除的库存盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteMeowStockTakingRecordsByRecordIds(String recordIds)
    {
        return meowStockTakingRecordsMapper.deleteMeowStockTakingRecordsByRecordIds(Convert.toStrArray(recordIds));
    }

    /**
     * 删除库存盘点记录信息
     * 
     * @param recordId 库存盘点记录主键
     * @return 结果
     */
    @Override
    public int deleteMeowStockTakingRecordsByRecordId(String recordId)
    {
        return meowStockTakingRecordsMapper.deleteMeowStockTakingRecordsByRecordId(recordId);
    }
}
